package other;

import java.util.Arrays;

public class contains_duplicate {
    public static void main(String[] args) {
        int [] nums  ={1,2,3,1};
        Arrays.sort(nums);
        for (int i=1;i<nums.length;i++){
            if(nums[i]==nums[i-1]){
                System.out.println(true);
                return;
            }
        }
        System.out.println(false);

    }
}
